﻿namespace BITS.PreCompiler.CSharp.Visitors
{
    /// <summary>
    /// 
    /// </summary>
    public interface IVisitable<TSelf>
        where TSelf : IVisitable<TSelf>
    {
        /// <summary>
        /// Visitor pattern.
        /// </summary>
        /// <param name="visitor"></param>
        /// <returns></returns>
        TSelf Accept(ISyntaxVisitor<TSelf> visitor);
    }
}
